FROM tutum/apache-php:latest
MAINTAINER loulan

# Install plugins
RUN apt-get update && \
  apt-get -y install php5-gd && \
  apt-get -y install php5-curl && \
  apt-get -y install curl && \
  apt-get -y install unzip && \
  rm -rf /var/lib/apt/lists/*

RUN curl -o emlog_5.3.1.zip -SL http://www.emlog.net/em_download/emlog/emlog_5.3.1.zip \
    && unzip emlog_5.3.1.zip -d emlog \
    && mv emlog/emlog/src/*  /app \
    && rm -rf emlog/* \
    && rm -rf emlog_5.3.1.zip

VOLUME  ["/app/uploads", "/app/system"]

CMD ["/run.sh"]